package com.javakc.mes.executeTeam.controller;

import com.javakc.commonutils.api.R;
import com.javakc.mes.executeTeam.entity.ExecuteTeam;
import com.javakc.mes.executeTeam.service.ExecuteTeamService;
import com.javakc.mes.executeTeam.service.impl.ExecuteTeamServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Api(tags = "队组类别")
@RequestMapping("mes/executeTeam")
public class ExecuteTeamController {

    @Autowired
    private ExecuteTeamServiceImpl executeTeamService;

    @GetMapping
    public R findAll(){
        List<ExecuteTeam> list = executeTeamService.list();
        return R.OK().data("items",list);
    }

    @ApiOperation(value = "根据条件进行分页查询  队组表")
    @GetMapping("page/executeTeam")
    public R findPagexecuteTeam(){

        return null;
    }
}
